package com.loyal.loyalerp.basedata.employeechange.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loyal.loyalerp.basedata.employeechange.jsonserialize.UserIdJsonSerializer;

public class GyPersonChange {
	private Integer id;

	@JsonSerialize(using = UserIdJsonSerializer.class)
	private Integer personid;

	private String changetype;

	private String beforechange;

	private String afterchange;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date effectdate;

	@JsonSerialize(using = UserIdJsonSerializer.class)
	private Integer makerid;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date makedate;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPersonid() {
		return personid;
	}

	public void setPersonid(Integer personid) {
		this.personid = personid;
	}

	public String getChangetype() {
		return changetype;
	}

	public void setChangetype(String changetype) {
		this.changetype = changetype == null ? null : changetype.trim();
	}

	public String getBeforechange() {
		return beforechange;
	}

	public void setBeforechange(String beforechange) {
		this.beforechange = beforechange == null ? null : beforechange.trim();
	}

	public String getAfterchange() {
		return afterchange;
	}

	public void setAfterchange(String afterchange) {
		this.afterchange = afterchange == null ? null : afterchange.trim();
	}

	public Date getEffectdate() {
		return effectdate;
	}

	public void setEffectdate(Date effectdate) {
		this.effectdate = effectdate;
	}

	public Integer getMakerid() {
		return makerid;
	}

	public void setMakerid(Integer makerid) {
		this.makerid = makerid;
	}

	public Date getMakedate() {
		return makedate;
	}

	public void setMakedate(Date makedate) {
		this.makedate = makedate;
	}
}